﻿IF EXISTS (SELECT * from sys.procedures p left join sys.schemas s on p.schema_id = s.schema_id where p.name='reference_delete' and s.name='Meta')
DROP PROCEDURE [Meta].reference_delete
GO
CREATE PROCEDURE [Meta].reference_delete 
@PK uniqueidentifier
AS
BEGIN
DELETE FROM 
	[Meta].[References]
WHERE
	[References].[id_reference] = @PK 
END